﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Codebehind="OutInvoiceDetail.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.Apply.OutInvoiceDetail"
    Title="医用耗材管理系统" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td class="right-color">
                出库管理-出库单生成</td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 14px;">
        <tr>
            <td class="bor bor-bg">
                出库台帐</td>
        </tr>
        <tr>
            <td class="bor">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            出库单号</td>
                        <td>
                            <asp:Label ID="lblBill_Id" runat="server" Width="80px"></asp:Label></td>
                        <td>
                            出库日期</td>
                        <td>
                            <asp:Label ID="lblIn_Date" runat="server" Text="时间"></asp:Label></td>
                        <td>
                            操作员</td>
                        <td>
                            <asp:Label ID="lblOperator" runat="server" ReadOnly="True"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="height: 22px">
                            出库类型</td>
                        <td style="height: 22px">
                            <asp:Label ID="lblIn_Class" runat="server" Width="80px"></asp:Label></td>
                        <td style="height: 22px">
                            领取部门</td>
                        <td colspan="3" style="height: 22px">
                            <asp:Label ID="lblDept" runat="server" Width="80px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="height: 22px">
                            科室领导</td>
                        <td style="height: 22px">
                            <asp:Label ID="lblDepter" runat="server"></asp:Label>
                            <asp:TextBox ID="txtDepter" runat="server" MaxLength="4"></asp:TextBox>
                        </td>
                        <td style="height: 22px">
                            出库经手人</td>
                        <td style="height: 22px">
                            <asp:Label ID="lblHandler" runat="server"></asp:Label>
                            <asp:TextBox ID="txtHandler" runat="server" MaxLength="4"></asp:TextBox>
                        </td>
                        <td style="height: 22px">
                            出库方式</td>
                        <td style="height: 22px">
                            &nbsp;<asp:Label ID="lblIndicator" runat="server" ReadOnly="True"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="height: 22px">
                            确认人</td>
                        <td style="height: 22px">
                            <asp:Label ID="lblVerifyer" runat="server"></asp:Label>
                            <asp:TextBox ID="txtVerifyer" runat="server" MaxLength="4"></asp:TextBox>
                        </td>
                        <td style="height: 22px">
                        </td>
                        <td style="height: 22px">
                        </td>
                        <td style="height: 22px">
                            实际金额</td>
                        <td style="height: 22px">
                            ￥<asp:Label ID="lblRealPric" runat="server" Text="0"></asp:Label></td>
                    </tr>
                    <tr>
                        <%--<td>
                            备注</td>
                        <td colspan="5">
                            <asp:Label ID="lblMemo" runat="server" TextMode="MultiLine" Width="98%"></asp:Label>
                        </td>--%>
                        <td>
                            <asp:Button ID="btnSaveHead" runat="server" Text="保 存" CssClass="longbutton" OnClick="btnSaveHead_Click"  />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div style=" display:none">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 14px;">
        <tr>
            <td class="bor bor-bg">
                请领明细</td>
        </tr>
        <tr>
            <td class="bor" style="padding: 13px;">
                <asp:GridView ID="grdApplyDetail" runat="server" AutoGenerateColumns="False" Width="100%">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="gv-first-line" />
                    <PagerStyle CssClass="fy" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#000000" />
                    <HeaderStyle CssClass="gv-head" />
                    <EditRowStyle BackColor="#000000" />
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="class_name" HeaderText="产品分类" />
                        <asp:BoundField DataField="exp_name" HeaderText="产品名称" />
                        <asp:BoundField DataField="specs" HeaderText="规格型号" />
                        <asp:BoundField DataField="quantity" HeaderText="请领数量" />
                        <asp:BoundField DataField="APPROVE_QTY" HeaderText="审核数量" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 14px;">
        <tr>
            <td class="bor bor-bg">
                出库单明细</td>
        </tr>
        <tr>
            <td class="bor" style="padding: 13px;">
                <asp:GridView ID="grvDetailList" runat="server" AutoGenerateColumns="False" 
                    OnRowDataBound="grvDetailList_RowDataBound" Width="100%">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="gv-first-line" />
                    <PagerStyle CssClass="fy" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#000000" />
                    <HeaderStyle CssClass="gv-head" />
                    <EditRowStyle BackColor="#000000" />
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                     <%--   <asp:BoundField HeaderText="出库流水账号" DataField="BOOK_ID" />
                        <asp:BoundField DataField="IN_BILL" HeaderText="入库单号" />
                        <asp:BoundField DataField="IN_ID" HeaderText="入库流水帐号" />
                        <asp:BoundField HeaderText="产品分类" />
                        <asp:BoundField DataField="EXP_CODE" HeaderText="产品名称" />
                        <asp:BoundField DataField="EXP_CODE" HeaderText="产品代码" />
                        <asp:BoundField DataField="SPECS" HeaderText="规格型号" />
                        <asp:BoundField DataField="BOOK_QUAN" HeaderText="出库数量" />
                        <asp:BoundField DataField="UNITS" HeaderText="单位" />
                        <asp:BoundField DataField="TRADE_PRIC" HeaderText="批发价" />
                        <asp:BoundField DataField="RETAIL_PRIC" HeaderText="零售价" />--%>
                        
                        <asp:BoundField HeaderText="序号" DataField="NUMBER" />
                        <asp:BoundField HeaderText="品名" DataField="EXP_NAME" />
                        <asp:BoundField HeaderText="规格" DataField="SPECS" />
                        <asp:BoundField HeaderText="单位" DataField="UNITS" />
                        <asp:BoundField HeaderText="请领数" DataField="QUANTITY" />
                        <asp:BoundField HeaderText="核准数" DataField="APPROVE_QTY" />
                        <asp:BoundField HeaderText="实发数" DataField="BOOK_QUAN" />
                        <asp:BoundField HeaderText="报价" DataField="TRADE_PRIC" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnExport" runat="server" Text="导出数据" CssClass="longbutton" OnClick="btnExport_Click" />
                        </td>
                    </tr>
        <tr>
            <td style="padding: 13px;">
                <asp:Button ID="btnCancel" runat="server" Text="返回" CssClass="button" Width="57"
                    Height="25" Style="cursor: pointer;" OnClick="btnCancel_Click" Visible="False" />
                    <asp:HiddenField id="lblMemo" runat="server" Value="noSelect"></asp:HiddenField><asp:HiddenField id="txtAppMemo" runat="server" Value="noSelect"></asp:HiddenField>
            </td>
        </tr>
    </table>
</asp:Content>
